<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 将地址栏信息对象化
      // http://127.0.0.1:5500/20231212/9.html
      console.log(window.navigator);
      console.log(window.location);
      console.log(window.location.host);
      console.log(window.location.pathname);

      setTimeout(() => {
        // 刷新页面
        // window.location.reload();
        // https://cn.bing.com/
        // 设置URL地址
        window.location.href = "http://www.bing.com";
      }, 5000);
    </script>
  </body>
</html>
